package com.kl.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author 明敬涵
 * @since 2021-10-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("transfer")
@ApiModel(value="Transfer对象", description="")
public class Transfer extends Model<Transfer> implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "中转id")
    @TableId(value = "tid", type = IdType.AUTO)
    private Long tid;

    @ApiModelProperty(value = "保管费")
    private BigDecimal storageFee;

    @ApiModelProperty(value = "员工id")
    private Long sid;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty(value = "进站时间")
    private Date arrivalTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty(value = "出站时间")
    private Date startTime;

    @ApiModelProperty(value = "中转站名称")
    private String transferName;

    @ApiModelProperty(value = "中转状态(0未出发,1,已出发)")
    private Integer transferState;

    @ApiModelProperty(value = "车辆id")
    private Long carId;

    @ApiModelProperty(value = "目的地仓库")
    private Long swIdEnd;

    @ApiModelProperty(value = "发货地仓库")
    private Long swIdSta;


}
